package edu.tgc.entity.file;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import edu.tgc.entity.file.dictionary.FileDocType;
import edu.tgc.entity.system.SysUser;

@Entity
public class FileDoc extends FileResource {

    private static final long serialVersionUID = -904262324191815614L;

    // protected Boolean audit;
    // protected Date auditTime;
    // @JsonIgnoreProperties(value = { "createUser", "lastModifyUser", "createTime", "lastModifyTime", "dept", "description", "enabled", "ip", "username", "sort", "address", "dutyStatus", "education", "email", "hireDate", "idNo",
    // "leaveDate", "major",
    // "qq", "sex", "status", "telphone" })
    // protected SysUser auditUser;
    protected String description;
    protected FileDocType type;
     @JsonIgnoreProperties(value = { "createUser", "lastModifyUser", "createTime", "lastModifyTime", "dept", "description", "enabled", "ip", "username", "sort", "address", "dutyStatus", "education", "email", "hireDate", "idNo", "leaveDate", "major",
            "qq", "sex", "status", "telphone" })
    protected SysUser author;


    public FileDoc() {
    }

    public FileDoc(UUID id) {
        super(id);
    }

    @Column(length = 512)
    public String getDescription() {
        return this.description;
    }

    @ManyToOne
    public FileDocType getType() {
        return this.type;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setType(FileDocType type) {
        this.type = type;
    }

    @ManyToOne
    public SysUser getAuthor() {
        return author;
    }

    public void setAuthor(SysUser author) {
        this.author = author;
    }


}
